<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid"%>

<rapid:override name="frame-content">
	<blockquote class="layui-elem-quote">
		<span class="layui-breadcrumb" lay-separator="/"> 
			<a href="/admin">首页</a> <a><cite>公告列表</cite></a>
		</span>
	</blockquote>
	<table class="layui-table">
		<colgroup>
			<col width="400">
			<col width="50">
			<col width="100">
			<col width="100">
			<col width="50">
		</colgroup>
		<thead>
			<tr>
				<th>标题</th>
				<th>Order</th>
				<th>状态</th>
				<th>操作</th>
				<td>ID</td>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="c" items="${noticeList}" >
				<tr>
					<td>
						<a href="notice/${c.noticeId}" target="_blank">${c.noticeTitle}</a>
					</td>
					<td>${c.noticeOrder}</td>
					<td>
						<c:choose>
							<c:when test="${c.noticeStatus == 1}">
                                                  显示
                            </c:when>
							<c:otherwise>
								<span style="color: #FF5722;">隐藏</span>
							</c:otherwise>
						</c:choose>
					</td>
					<td>
						<a href="notice/edit/${c.noticeId}" class="layui-btn layui-btn-mini">编辑</a>
						<a href="notice/delete/${c.noticeId}" class="layui-btn layui-btn-danger layui-btn-mini" 	onclick="return confirmDelete()">删除</a>
					</td>
					<td>${c.noticeId}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<blockquote class="layui-elem-quote layui-quote-nm">
		温馨提示：
		<ul>
			<li>Order的大小决定显示的顺序</li>
		</ul>
	</blockquote>
</rapid:override>

<%@ include file="../framework.jsp"%>